package org.example.springboot.controller;

import org.example.springboot.entity.Hero;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/users")
public class UserController {
    @Autowired
    private Hero hero;
    @GetMapping("/index")
    public  String index() {
        System.out.println(1);
        return "Hello World1";
    }

}
